main: Drop --archive option from init, now that the code is removed
authorColin Walters <walters@verbum.org>
Mon, 19 Aug 2013 16:43:05 +0000 (12:43 -0400)
committerColin Walters <walters@verbum.org>
Fri, 23 Aug 2013 13:55:09 +0000 (09:55 -0400)
Commit 1ec7c304086c14fe0540d9c371b66f64a7a81b2e removed archive mode,
so this bit needs to be removed too.

https://bugzilla.gnome.org/show_bug.cgi?id=706327

src/ostree/ot-builtin-init.c

index 252b08ee88490454ff2449edf7f84d9a86542229..01421aef0f7d22ca19bd1bea80d826c46733fd75 100644 (file)
 #include "ostree.h"
 #include "libgsystem.h"
 
-static gboolean opt_archive;
 static char *opt_mode = NULL;
 
 static GOptionEntry options[] = {
-  { "archive", 0, 0, G_OPTION_ARG_NONE, &opt_archive, "Initialize repository as archive", NULL },
   { "mode", 0, 0, G_OPTION_ARG_STRING, &opt_mode, "Initialize repository in given mode (bare, archive-z2)", NULL },
   { NULL }
 };
@@ -59,9 +57,7 @@ ostree_builtin_init (int argc, char **argv, GFile *repo_path, GCancellable *canc
   child = g_file_get_child (repo_path, "config");
 
   config_data = g_string_new (DEFAULT_CONFIG_CONTENTS);
-  if (opt_archive)
-    mode_str = "archive";
-  else if (opt_mode)
+  if (opt_mode)
     {
       OstreeRepoMode mode;
       if (!ostree_repo_mode_from_string (opt_mode, &mode, error))